import java.util.Scanner;

public class TestVisitor {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Visitor m=new Visitor();
        do {
            System.out.print("请输入姓名：");
            m.name=input.next();
            if ("n".equals(m.name)){
                break;
            }
            System.out.print("请输入年龄：");
            m.age=input.nextInt();
            m.judge();
        }while (true);
        m.judegs();
    }
}
